-- GENERATED SPELL FOR [Bonechewer Blade Fury] --


function spell0_23235(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(41195,pUnit)
pUnit:RegisterEvent('Sorts_23235', 643, 1)
end

function spell1_23235(pUnit, Event) --@Whirlwind,n/a--
pUnit:FullCastSpellOnTarget(41194,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23235', 8000, 1)
end

function Sorts_23235(pUnit, Event)
local choix_sorts_23235 = math.random(0, 1)
if choix_sorts_23235 == 0 then
pUnit:RegisterEvent('spell0_23235', 1, 1)
end
if choix_sorts_23235 == 1 then
pUnit:RegisterEvent('spell1_23235', 1, 1)
end
end

function mob23235_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23235', math.random(1500, 3000), 1)
end

function mob23235_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23235_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23235_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23235, 1, 'mob23235_Action')
RegisterUnitEvent(23235, 2, 'mob23235_Leave')
RegisterUnitEvent(23235, 3, 'mob23235_Kill')
RegisterUnitEvent(23235, 4, 'mob23235_Die')
